package com.pda.yuanjing.pages.custombill.add;

import com.pda.yuanjing.beanin.AddCBillBeanIn;
import com.public_module.basemvp.present.BasePresenter;

public class AddBillPresent extends BasePresenter<AddBillModel, AddBillView> implements AddBillModel.CallBack {

    public void initBase(String pid,String jieDianName){
        view.showProgress();
        model.downLoadInfo1(pid,jieDianName);
        model.downLoadInfo2(pid,jieDianName);
        view.hideProgress();
    }

    public void addList(AddCBillBeanIn addCBillBeanIn) {
        view.showProgress();
        model.addBill(addCBillBeanIn,this);
    }

    @Override
    public void ontip(String str) {
        if(view!=null)
        {
            view.hideProgress();
            view.tip(str);
        }
    }
}


